package com.lonty.intelligence.mapper;

import com.lonty.intelligence.model.StreetNotification;
import com.lonty.intelligence.request.StreetNotificationLogo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * @Author 陈璇
 * @Date 2020/6/28 14:51
 * @Version 1.0
 */
@Mapper
public interface StreetNotificationMapper {

    /**
     * 保存街道通知
     * @param streetNotification
     * @return
     */
    int saveStreetNotification(StreetNotification streetNotification);

    /**
     * 根据类型获取通知列表
     * @param type
     * @param userInfoId
     * @return
     */
    List<StreetNotification> getStreetNotification(@Param("type") Integer type, @Param("userInfoId") String userInfoId);

    /**
     * 获取首页轮播图
     * @return
     */
    List<StreetNotificationLogo> getLogoList();

}
